﻿namespace System.Xml.Serialization
{
    using System.IO;

    [Serializable]
    public static class XmlDataSerializer
    {
        public static void Load<T>(T obj, Stream stream) where T : IXmlData
        {
            XmlObjectSerializer.Load(stream, typeof(T), obj);
        }

        public static void Save<T>(T obj, Stream stream) where T : IXmlData
        {
            XmlObjectSerializer.Save(stream, typeof(T), obj);
        }
    }
}
